package com.lengxf.aPlugins.bizType.model.backup_agk;

import com.lengxf.aPlugins.bizType.BizInterface;
import com.lengxf.aPlugins.bizType.GroupSubTypeEnum;
import com.lengxf.aPlugins.bizType.GroupTypeEnum;
import com.lengxf.aPlugins.bizType.InteractionModel;

import java.util.List;

/**
 * 过点队列逻辑
 * 与关键过点逻辑相同
 */
public class GuoDian_agk implements BizInterface {

    @Override
    public List<InteractionModel> getInteractionModelList() {
        return List.of(
                readData(),
                request(),
                res_COMPLETE()
        );
    }

    //读取参数
    public static InteractionModel readData() {
        List<String> list = List.of(
                "VIN2",
                "BodyType2",
                "BodyNo2",
                "Skid"
        );
        return new InteractionModel(GroupTypeEnum.READ, GroupSubTypeEnum.DATA, list);
    }

    //请求监听参数
    public static InteractionModel request() {
        List<String> list = List.of("Req_ID2");
        return new InteractionModel(GroupTypeEnum.SUBSCRIPTION, GroupSubTypeEnum.REQUEST, list);
    }


    //返回5  --普通过点
    public static InteractionModel res_COMPLETE() {
        List<String> list = List.of("Rsp_ID2");
        return new InteractionModel(GroupTypeEnum.WRITE, GroupSubTypeEnum.COMPLETE, list);
    }


}
